<template>
    <div class="setup">
      <!-- <mt-header title="设置">
      </mt-header> -->
		<div class="header">
		  <van-nav-bar title="设置" fixed  right-text left-arrow @click-left="onClickLeft"/>
		</div>
		<!-- left-text="返回" -->
      <div class="setup_ul">
        <ul>
          <li><mt-cell title="地址管理" to="/Address" is-link></mt-cell></li>
        </ul>
        <ul>
          <li><mt-cell title="语言" to="/Language" is-link></mt-cell></li>
          <li><mt-cell title="联系我们" is-link @click.native=" ModifyPassword()"></mt-cell></li>
          <li><mt-cell title="投诉建议" to="/Complaints" is-link></mt-cell></li>
        </ul>
        <ul>
          <li><mt-cell title="关于我们" to="/aboutMe" is-link></mt-cell></li>
        </ul>
      </div>
      <div class="nesAddress_foot">
        <button class="nesAddress_foot_button" @click="loginOut">退出登录</button>
      </div>
      <!--弹出框-->
      <div class="metai" v-show="ModifyPassword_pop_up">
        <div class="metai_con2">
          <div class="box">
            <div class="isunbind1">
              <p>若有任何问题或疑惑，请致电<br/>400-017-1518</p>
              <div class="isunbind_button">
                <button @click="hiddenShow()">取消</button>
              </div>
              <div class="isunbind_button1">
                <button @click="unbind()" >
                  拨打
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
</template>

<script>
  // import {getCookie, setCookie,authorLogin,delCookie} from "../../utils/util";
    export default {
        name: "SetUp",
      data(){
          return{
            ModifyPassword_pop_up:false,
            // phoneNumber:'400-017-1518',
          }
      },
      methods:{
        ModifyPassword(){
          this.ModifyPassword_pop_up=true
        },
        unbind: function () {
          window.location.href = 'tel:400-017-1518'
          this.ModifyPassword_pop_up=false;
        },
        hiddenShow(){
          this.ModifyPassword_pop_up=false
        },
        loginOut:function () {
          localStorage.removeItem('userInfo');
          localStorage.removeItem('wxUserInfo');
          localStorage.removeItem('token');
          this.$router.push({path:'/user'})
        },
		//返回
		onClickLeft() {
		  this.$router.go(-1);//返回上一层
		},
      },
      created:function () {
        //隐藏公用底部
        this.$emit('public_footer', false);
        setTitle('设置')
      },
    }
</script>

<style scoped>
  @import '../../assets/css/index.css';
  .setup{background-color: #efefef;height:100vh;}
  .setup_ul{margin-top:0.55rem;}
  .setup_ul ul{margin-top: 0.1rem;background-color: #fff;}
  .setup_ul ul li{font-size: 0;}
  .mint-msgbox-confirm {color: #01bf47!important;}
	

</style>
